/* 
 * File:   Log.h
 * Author: niyaz
 *
 * Created on March 20, 2011, 9:22 AM
 */

#include <string>

#include <iostream>
#include <fstream>
using namespace std;

#ifndef LOG_H
#define	LOG_H

class Log {
public:
    ofstream out;
    bool filewrite;

    static Log* getInstance() {
        if (l == NULL)
            l = new Log();
        return l;
    };


    bool verb;
    void sMessage(string m);
    void sError(string m);
    void sDebugging(string m);
    bool sAsk(string q);

private:

    Log() {
        filewrite = false;
        verb = false;
    };
    static Log* l;
};








#endif	/* LOG_H */

